home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
science
/
sm32a.zip
/
LIBRARY
/
LN.LI
< prev
next >
Wrap
Text File
|
1993-11-14
|
135b
|
9 lines
# ln(x) is natural log
ln(0) := -inf
ln(1) := 0
ln(e) := 1
ln(inf) := inf
ln(x_^n_) := n*ln(x)
ln(x_) := if(x<0, ln(-x)+pi*i)